package com.lxh.lxhcrm.model.pojos;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "d_zan", schema = "lxh_crm", catalog = "")
public class DZan {
    private int dZanId;
    private Integer empId;
    private Integer actionRecordId;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date zanDate;

    @Id
    @Column(name = "d_zan_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getdZanId() {
        return dZanId;
    }

    public void setdZanId(int dZanId) {
        this.dZanId = dZanId;
    }

    @Basic
    @Column(name = "emp_id", nullable = true)
    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    @Basic
    @Column(name = "action_record_id", nullable = true)
    public Integer getActionRecordId() {
        return actionRecordId;
    }

    public void setActionRecordId(Integer actionRecordId) {
        this.actionRecordId = actionRecordId;
    }

    @Basic
    @Column(name = "zan_date", nullable = true)
    public Date getZanDate() {
        return zanDate;
    }

    public void setZanDate(Date zanDate) {
        this.zanDate = zanDate;
    }
}
